/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.inftel.primeproject.managedBeans;

import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.inftel.primeproject.model.Users;
import org.inftel.primeproject.remote.UsersFacadeRemote;

/**
 *
 * @author Administrador
 */
@ManagedBean
@RequestScoped
public class PeopleBean {
    @EJB
    private UsersFacadeRemote userFacade;
   
    private Users selectedUser;
    private List<Users> users;

    
    public PeopleBean(){}

    public Users getSelectedUser() {
        return selectedUser;
    }

    public void setSelectedUser(Users selectedUser) {
        this.selectedUser = selectedUser;
    }

    public List<Users> getUsers() {
        users=userFacade.findAll();
        return users;
    }

    public void setUsers(List<Users> users) {
        this.users = users;
    }

    

}
